package com.superbytecode.cloud.common.annotation.field;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: sanskrit
 * @Package: com.superbytecode.cloud.core.annotation.field
 * @ClassName: FieldDict
 * @Description: [字段值对应的枚举类型]
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/8/16 16:23
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.cn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface FieldDict {
    /**
     * 枚举类型
     *
     * @return class
     */
    Class<?> enumType() default Object.class;

    /**
     * 枚举code类型
     * 默认Integer
     *
     * @return class
     */
    Class<?> codeType() default Integer.class;
}
